<include file="./Tm/Dt/Admin/Top.html" />

<include file="./Tm/Dt/Admin/Left.html" />


<div id="right">
    <include file="./Tm/Dt/Admin/Nav.html" />
    <div class="main">
        <div class="panel panel-primary">
            <div class="panel-body panel-heading">
                <h3 class="panel-title">网站留言</h3>
            </div>
            <div class="panel-footer clearfix">
                <table class="table">
                    <tr>
                        <th>标题</th>
                        <th>留言时间</th>
                        <th>操作</th>
                    </tr>
                    <volist name="room" id="vo">
                    <tr>
                        <td>
                        	<a href="/admin/index/message_show?message_id={$vo.id}">{$vo.title}</a>
                        	<eq name="vo.reply_time" value="0">
							<small class="label label-primary">未回复</small>
							<else />
							<small class="label label-success">已回复</small>
							</eq>
                        </td>
                        <td>{$vo.createtime|date="Y-m-d H:i:s",###}</td>
                        <td>
                        	<a href="/admin/index/message_show?message_id={$vo.id}" class="btn btn-primary btn-xs">回复</a>
                        	<a href="/admin/index/message_del?message_id={$vo.id}" class="btn btn-danger btn-xs">删除</a>
                        </td>
                    </tr>
                    </volist>
                </table>
                <gt name="total" value="$pagesize">
                    <include file="./Tm/Dt/Page.html" />
                </gt>
            </div>
        </div>
    </div>
</div>

<include file="./Tm/Dt/Admin/Foot.html" />